<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Edit User</title>
</head>
<body>
<%@page import="java.util.*;"%>
<jsp:useBean id="user" type="csc.nndp.dao.User" scope="request"></jsp:useBean>

<form action="add-user?action=edit" method="post">
	<fieldset style="width:300px;">
		<legend><b></b></legend>
		<table>
			<tr>
				<td>User Id:</td>
				<td>${user.userId}
				<input type="hidden" name="userId" value="${user.userId}"/>
				
				</td>
			</tr>
			
			<tr>
				<td>UserName:</td>
				<td><input type="text" name="userName" value="${user.userName}"/> <span style="color: red">*</span></td>
			</tr>
			<tr>
				<td>Password:</td>
				<td><input type="text" name="pass" value="${user.password}"/> <span style="color: red">*</span></td>
			</tr>
			<tr>
				<td>First Name:</td>
				<td><input type="text" name="firstName" value="${user.firstName}"/> <span style="color: red">*</span></td>
			</tr>
			<tr>
				<td>Last Name:</td>
				<td><input type="text" name="lastName" value="${user.lastName}"/><span style="color: red">*</span></td>
		
			<tr>
				<td>Phone:</td>
				<td><input type="text" name="Phone" value="${user.phone}"/></td>
			</tr>
			<tr>
				<td>Email:</td>
				<td><input type="text" name="email" value="${user.email}"/></td>
			</tr>
		<tr>
				<td>Role:</td>
				<td><input type="text" name="role" value="${user.role}"/></td>
			</tr>
		</table>
		<br />
		<input type="submit" value="Accept" /><input type="reset" value="Cancel" onclick="window.location.href ='view-user'"/>
	</fieldset>
</form>



</body>
</html>